Developer Documentation

QuickTime 4 API Documentation

Wired Movies and Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Flags for Sprite Hit Testing

You can pass the following flags to SpriteWorldHitTest and SpriteHitTest to control sprite hit testing.

enum {
    spriteHitTestBounds                 = 1L << 0,
    spriteHitTestImage                  = 1L << 1
    spriteHitTestInvisibleSprites = 1L << 2,  
    spriteHitTestIsClick                = 1L << 3,
    spriteHitTestLocInDisplayCoordinates = 1L << 4
};

Flag descriptions

spriteHitTestBounds
The specified location must be within the sprite's bounding box.
spriteHitTestImage
If both this flag and spriteHitTestBounds are set, the specified location must be within the shape of the sprite's image.
spriteHitTestInvisibleSprites
This flag enables invisible sprites to be hit tested.
spriteHitTestIsClick
This flag is for codecs that want mouse events, such as the ripple codec.
spriteHitTestLocInDisplayCoordinates
 
You set this flag if you want to pass a display coordinate point to SpriteHitTest , such as returned by the Mac OS Toolbox routine getMouse .

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |